package com.pro.framework.spring.util;

import com.pro.framework.api.model.FrameworkException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Slf4j
public abstract class BaseServiceDefaultFactory<KEY, SERVICE> extends BaseServiceFactory<KEY, SERVICE> {

    public SERVICE getDefault() {
        return getServiceMap().values().stream().findFirst().orElse(null);
    }
}
